import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.JFrame;


public class Window  extends JFrame{
	
	//private BufferedImage bi1;
	
	public Window(){
		super();
		this.setSize(1024, 720);
		this.getContentPane().setBackground(Color.gray);
//		try {
//			bi1 = ImageIO.read(new File("masterchief.jpg"));
//		} catch (IOException e) {
//			e.printStackTrace();
//		}
	}
	
	public void paint(Graphics g){
		Graphics2D g2d = (Graphics2D)g;
		super.paint(g2d);
		g2d.setColor(Color.BLUE);
		g2d.fillRect(x, y, 100, 75);
		//g2d.drawImage(bi1, 100, 100, null);
	}

	

	public int x = 100;
	public int y = 100;
	public static void main(String[]args){
		Window test = new Window();
		test.setVisible(true);
	}
	
}
